<?php
class  MY_Controller  extends  CI_Controller  
{

    function __construct()  
    {    
        parent::__construct();
        $this->settings = new Setting();
        $this->settings->get()->all;
        $this->contactDetails = new Contact();
        $this->contactDetails->get()->all;
    }

}
?>